import request from '@/utils/request'

export default {
    // 获取会议室预约分页
    meetingReservationPage(data) {
        return request({
            url: '/biz/meetingreservation/page',
            method: 'GET',
            data: data
        })
    },
    // 提交会议室预约表单 add为false时为编辑，默认为新增
    meetingReservationSubmitForm(data, add = true) {
        return request({
            url: '/biz/meetingreservation/' + (add ? 'add' : 'edit'),
            method: 'POST',
            data: data
        })
    },
    // 删除会议室预约
    meetingReservationDelete(data) {
        return request({
            url: '/biz/meetingreservation/delete',
            method: 'POST',
            data: data
        })
    },
    // 获取会议室预约详情
    meetingReservationDetail(data) {
        return request({
            url: '/biz/meetingreservation/detail',
            method: 'GET',
            data: data
        })
    },
}
